Unix Network Programming SRC
The source code repository:https://github.com/unpbook/unpv13e
Preparation
1 | git clone https://github.com/unpbook/unpv13e |
Configure the makefile for your system:
1 | CC=gcc CFLAGS=-w CPPFLAGS=-w ./configure |
In archlinux, if you use
./configure
directly, you will getWimplicit
compile error in the following steps.
Build the dependence library.
1 | cd lib |
You can test by using the sample program
1 | cd ../intro |
If you get error
1 | connect error: Connection refused |
You need to install xinetd
, configure it and start the service
1 | yay -S xinetd |
And run daytimetcpcli
again, you will get something like
1 | 16 MAY 2024 14:09:07 CST |
Then, you are all set.
Unix Network Programming SRC
http://chen-yulin.github.io/2024/05/16/[OBS]Computer Network-Unix Network Programming SRC/